from django.db import models

class Member(models.Model):
    Mid = models.AutoField(primary_key=True)
    Mname = models.CharField(max_length=30)
    Msex = models.IntegerField(choices=((0, '男'), (1, '女')))
    Mbirthday = models.CharField(max_length=10)
    Mcard = models.CharField(max_length=18)
    Mtel = models.CharField(max_length=12)
    delflg = models.IntegerField(default=0)  # 0: 未删除; 1: 已删除
    other = models.CharField(max_length=20, blank=True, null=True)

    class Meta:
        db_table = 'tb_member'
